<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="{$site_url}/">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7 charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="favicon.ico">
<meta name="keywords" content="{$page_keywords}" />
<meta name="Description" content="{$page_description}" />
<title>{$page_title}</title>
<style>
body {
background:none repeat scroll 0 0 #FFFFFF;
color:#787878;
}

body, button, input, select, textarea, th {
font:12px/1.5 Tahoma,"hiragino sans gb",Helvetica,Arial;
}

body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, fieldset, lengend, button, input, textarea, th, td {
margin:0;
padding:0;
}
h1, h2, h3, h4, h5, h6 {
font-size:100%;
}
a {
color:#056EA1;
}

a {
text-decoration:none;
}
img {
display:block;
}

fieldset, img {
border:medium none;
}
ul, ol, li {
list-style:none outside none;
}
.clearfix {
}
.clearfix:after {
clear:both;
content:".";
display:block;
font-size:0;
height:0;
line-height:0;
visibility:hidden;
width:0;
}
</style>

</head> 
<body> 

<!-- 顶部开始 alltop.html -->
<phpscup:icon   htmlname='top2'  iconname='top2' />
<!-- 顶部结束 alltop.html -->



<div class="clearfix" style="margin:0 auto;width:960px;">

	<div  style="width:220px;float:left;margin:0 10px;overflow:hidden;">

<!-- 顶部开始 alltop.html -->
<phpscup:icon   htmlname='icon_l10'  iconname='icon_l10' />
<!-- 顶部结束 alltop.html -->

    </div>
	<div  style="width:600px;float:left;margin:0 10px;overflow:hidden;">

        <div style=" height:20px;"></div>

<style>
.mod_toolbar {
height:40px;
overflow:hidden;
}
.mod_sub_tab .current {
background:none repeat scroll 0 0 #056EA1;
color:#FFFFFF;
cursor:default;
font-weight:bold;
padding:0 10px;
}

.mod_sub_tab a {
display:inline-block;
}
.mod_sub_tab a {
display:inline-block;
padding:0 6px;
}
</style>
		
		<div class="mod_toolbar">
			<p class="mod_sub_tab ">

            
             <a href="#" class="current">基本设置</a>
           <!--  | <a href="?app=companynew&act=cagryadd">新增新闻分类</a>-->
			
			
			</p>

		</div>

 <script language="javascript" type="text/javascript">
 
 function resize_textarea(obj,type) {
	if(type == 'plus'){
		var newheight = parseInt(document.getElementById(obj).style.height, 10) + 50;
		document.getElementById(obj).style.height = newheight + 'px';
	}else{
		var newheight = parseInt(document.getElementById(obj).style.height, 10) - 50;
		if(newheight > 0) {
			document.getElementById(obj).style.height = newheight + 'px';
		}
	}
}

 
 </script>                                  
                                   
                                   
                                   
                                   
<style>
.table_style{
border-bottom:1px #efefef  solid;
}

.table_style td{
border-bottom:1px #efefef  solid;
}

</style>                                   
                                   
  <form onSubmit="return chksettings();" method="post" action="?app=company&act=setting&action=addpost"  enctype="multipart/form-data">

<table width="100%" cellspacing="0" cellpadding="4" border="0" align="center" class="table_style">
<tbody>

<tr>
	<td width="40%"><span class="bold">网站名称</span>: <br><span class="gray">显示于网站标题中，推荐 50字以内。</span></td>
	<td><input type="text" maxlength="50" size="40" value="{$data.site_title}" name="data[site_title]" id="site_title"></td>
</tr>

<tr>
	<td><span class="bold">网站关键字</span>: <br><span class="gray">网站关键字可以用于说明您的网站，多个关键词以英文半角逗号(,)隔开，建议 80字以内，有利于搜索引擎收录。</span></td>
	<td><textarea style="width: 300px; height: 30px;" name="data[site_keywords]" id="site_keywords">{$data.site_keywords}</textarea><br>
	<a onClick="resize_textarea('site_keywords','plus');" href="javascript:void(0);">[+]</a> <a onClick="resize_textarea('site_keywords','sub');" href="javascript:void(0);">[-]</a>
	</td>
</tr>
<tr>
	<td><span class="bold">网站描述</span>: <br><span class="gray">网站描述可以详细说明您的网站，建议 200字以内，有利于搜索引擎收录。</span></td>
	<td><textarea style="width: 300px; height: 30px;" name="data[site_description]" id="site_description">{$data.site_description}</textarea><br>
	<a onClick="resize_textarea('site_description','plus');" href="javascript:void(0);">[+]</a> <a onClick="resize_textarea('site_description','sub');" href="javascript:void(0);">[-]</a>
	</td>
</tr>



<tr>
	<td><span class="bold">网站备案</span>: <br><span class="gray">您在 <a target="_blank" href="http://www.miibeian.gov.cn/">http://www.miibeian.gov.cn/</a> 信息产业部网站的备案号。</span></td>
	<td><input type="text" maxlength="50" size="40" value="{$data.miibeian}" name="data[miibeian]" id="miibeian"></td>
</tr>


<tr>
	<td><span class="bold">访问地址</span>: <br><span class="gray">网站真实的访问地址，地址出错将会无法访问系统，请慎重！请写入详细的URL地址，如 http://yoursite ，地址最后不要以 "/" 结束</span></td>
	<td><input type="text" maxlength="150" size="40" value="<?php if ($data.site_url) { ?>{$data.site_url}<?php } else { ?>{SITE_URL}<?php } ?>" name="data[site_url]" id=""></td>
</tr>

<tr>
	<td><span class="bold">文件存放目录</span>: <br><span class="gray">如果此处修改了此目录名，请在程序的根目录下修改 upfiles 的文件夹与当前设定的目录名称相同，否则会出现无法上传文件的问题。<br><span class="txtred">(不建议用户修改。)</span></span></td>
	<td><input type="text" maxlength="30" value="{$data.upfile_path}" name="data[upfile_path]" id="upfile_path"></td>
</tr>
 
<tr>
	<td><span class="bold">缩略图大小</span>: <br><span class="gray">网盘上传文件时，图片文件会自动生成缩略图，请确认您的服务器支持GD函数库。默认大小为120*90(px)</span></td>
	<td>长<input type="text" maxlength="4" size="6" value="{$data.thumb_width}" name="data[thumb_width]"> x 宽 <input type="text" maxlength="4" size="6" value="{$data.thumb_height}" name="data[thumb_height]"></td>
</tr>


<tr>
	<td><span class="bold">水印图片</span>: <br><span class="gray"></span></td>
	<td>   <input id="postfile1" type="file" name="postfile1" style="height:20px;"  class="buton">  
    <br/> <br/>
    <!--{if (is_file(ROOT_PATH . '/' . UPFILE_PATH . '/' .$data.waterimg_dir))}-->
     <img src="{$data.waterimg_dir|picdir}" onerror="this.src='{SITE_URL}/data/images/nopic.gif'"  width="120px" height="90px"/>     
     <!--{else}-->  
     <img src="{SITE_URL}/data/images/logo.gif" onerror="this.src='{SITE_URL}/data/images/nopic.gif'" />
     <!--{/if}-->
    </td>
</tr>



<tr>
	<td><span class="bold">图片加水印</span>: <br><span class="gray">设置图片是否加水印</span></td>
	<td><input type="radio" <!--{if ($data.is_waterimg==1)}-->checked="checked"<!--{/if}--> value="1" name="data[is_waterimg]"> 是&nbsp;&nbsp;<input type="radio" value="0" name="data[is_waterimg]" <!--{if ($data.is_waterimg==0)}-->checked="checked"<!--{/if}-->> 否</td>
</tr>

<tr>
	<td><span class="bold">伪静态开启</span>: </td>
	<td><input type="radio" <!--{if ($data.system_url_rewrite==1)}-->checked="checked"<!--{/if}--> value="1" name="data[system_url_rewrite]"> 是&nbsp;&nbsp;<input type="radio" value="2" name="data[system_url_rewrite]" <!--{if ($data.system_url_rewrite==2)}-->checked="checked"<!--{/if}-->> 否
    </td>
</tr>

<tr>
	<td><span class="bold">静态化开启</span>: </td>
	<td><input type="radio" <!--{if ($data.system_url_html_rewrite==1)}-->checked="checked"<!--{/if}--> value="1" name="data[system_url_html_rewrite]"> 是&nbsp;&nbsp;<input type="radio" value="0" name="data[system_url_html_rewrite]" <!--{if ($data.system_url_html_rewrite==0)}-->checked="checked"<!--{/if}-->> 否
    </td>
</tr>

<tr>
	<td><span class="bold">最大上传文件</span>: <br><span class="gray">设置为 0 则为按 PHP 的 max_file_size 设置，填写格式：如0.12 ,3 等。注意：如果所填数值超过 php.ini 的设置，系统会按 php.ini 中所允许的最大值来设置</span></td>
	<td><input type="text" maxlength="10" value="{$data.max_file_size}" name="data[max_file_size]" id="max_file_size"> 当前大小: <b>{$data.max_file_size} M</b></td>
</tr>

<tr>
	<td><span class="bold">上传文件类型</span>: <br><span class="gray">允许上传的文件类型</span></td>
	<td><input type="text" maxlength="250" size="55" value="{$data.upfile_types}" name="data[upfile_types]" id="upfile_types"></td>
</tr>

<tr>
	<td><span class="bold">启用验证码</span>: <br><span class="gray">启用验证码可以大大降低机器人的恶意注册，更好的保护系统的资源。</span></td>
	<td><input type="checkbox" value="1" id="reg" name="data[register_verycode]" <!--{if ($data.register_verycode==1)}-->checked="checked"<!--{/if}-->><label for="reg">用户注册</label>&nbsp;
	<input type="checkbox" value="1" id="login" name="data[login_verycode]"<!--{if ($data.login_verycode==1)}-->checked="checked"<!--{/if}--> ><label for="login">用户登录</label>&nbsp;
	</td>
</tr>


<tr>
	<td><span class="bold">页面 Gzip 压缩</span>: <br><span class="gray">将页面内容以 gzip 压缩后传输，可以加快传输速度，需 PHP 4.0.4 以上且支持 Zlib 模块才能使用</span></td>
	<td><input type="radio"  <!--{if ($data.enabled_gzip==1)}-->checked="checked"<!--{/if}--> value="1" name="data[enabled_gzip]"> 是&nbsp;&nbsp;<input type="radio" <!--{if ($data.enabled_gzip==0)}-->checked="checked"<!--{/if}--> value="0" name="data[enabled_gzip]"> 否</td>
</tr>

<!--
<tr>
	<td><span class="bold">开启URL重写(Rewrite URL)</span>: <br><span class="gray">请确认您的服务器支持URL重写，否则，开启后将无法浏览你的网站。(只针对前台，对于管理员面板URL不重写，开启此功能，会稍微加重您的服务器负载。)</span></td>
	<td><input type="radio" <!--{if ($data.system_url_rewrite==1)}-->checked="checked"<!--{/if}--> value="1" name="data[system_url_rewrite]"> 是&nbsp;&nbsp;<input type="radio" <!--{if ($data.system_url_rewrite==0)}-->checked="checked"<!--{/if}--> value="0" name="data[system_url_rewrite]"> 否</td>
</tr>

-->

<tr>
	<td><span class="bold">显示版本信息</span>: <br><span class="gray">管理员设置用户系统的底部是否显示当前所用PHPSCUP系统的版本信息(仅限于网站的前台页面)。</span></td>
	<td><input type="radio" <!--{if ($data.version_info==1)}-->checked="checked"<!--{/if}-->  value="1" name="data[version_info]"> 是&nbsp;&nbsp;<input type="radio" <!--{if ($data.version_info==0)}-->checked="checked"<!--{/if}-->  value="0" name="data[version_info]"> 否</td>
</tr>


<tr>
	<td><span class="bold">允许访问系统</span>: <br><span class="gray">默认为允许访问，原因请在200字符内（选填），此选项对管理员无效。</span></td>
	<td><input type="radio" <!--{if ($data.system_open==1)}-->checked="checked"<!--{/if}-->  value="1" name="data[system_open]"> 是&nbsp;&nbsp;<input type="radio" <!--{if ($data.system_open==0)}-->checked="checked"<!--{/if}--> value="0" name="data[system_open]"> 否<br>
	<textarea style="width: 300px; height: 30px;" id="system_open_reason" name="data[system_open_reason]">{$data.system_open_reason}</textarea><br>
	<a onClick="resize_textarea('system_open_reason','plus');" href="javascript:void(0);">[+]</a> <a onClick="resize_textarea('system_open_reason','sub');" href="javascript:void(0);">[-]</a>
	</td>
</tr>


<tr>
	<td><span class="bold">允许用户注册</span>: <br><span class="gray">关闭时，新用户将无法注册，原因请在200字符内（选填）。</span></td>
	<td><input type="radio" <!--{if ($data.allow_register==1)}-->checked="checked"<!--{/if}--> value="1" name="data[allow_register]"> 是&nbsp;&nbsp;<input type="radio"  <!--{if ($data.allow_register==0)}-->checked="checked"<!--{/if}--> value="0" name="data[allow_register]"> 否<br>
	<textarea style="width: 300px; height: 30px;" id="close_register_reason" name="data[close_register_reason]">{$data.close_register_reason}</textarea><br>
	<a onClick="resize_textarea('close_register_reason','plus');" href="javascript:void(0);">[+]</a> <a onClick="resize_textarea('close_register_reason','sub');" href="javascript:void(0);">[-]</a>
	</td>
</tr>

<tr>
	<td><span class="bold">常用关键字</span>: <br><span class="gray">常用关键字的设置，主要用在新闻管理，产品管理中常用关键字的设置。关键字之间使用一个"+"号分离</span></td>
	<td><textarea style="width: 300px; height: 30px;" id="away_use_keyword" name="data[away_use_keyword]">{$data.away_use_keyword}</textarea><br>
	<a onClick="resize_textarea('away_use_keyword','plus');" href="javascript:void(0);">[+]</a> <a onClick="resize_textarea('away_use_keyword','sub');" href="javascript:void(0);">[-]</a>
	</td>
</tr>

<tr>
	<td><span class="bold">常用来源站点</span>: <br><span class="gray">常用来源站点的设置，主要用在新闻管理，产品管理中常用来源站点的设置。关键字之间使用一个"+"号分离</span></td>
	<td><textarea style="width: 300px; height: 30px;" id="away_use_zhandian" name="data[away_use_zhandian]">{$data.away_use_zhandian}</textarea><br>
	<a onClick="resize_textarea('away_use_zhandian','plus');" href="javascript:void(0);">[+]</a> <a onClick="resize_textarea('away_use_zhandian','sub');" href="javascript:void(0);">[-]</a>
	</td>
</tr>

<tr>
	<td><span class="bold">QQ咨询设置</span>: <br><span class="gray">格式为(qq号1:qq1介绍|qq号2:qq2介绍|.....),比如(247672404:phpscup官网|2113963:phpscup官方群)</span></td>
	<td><textarea style="width: 300px; height: 30px;" id="qq_set_data" name="data[qq_set_data]">{$data.qq_set_data}</textarea><br>
	<a onClick="resize_textarea('qq_set_data','plus');" href="javascript:void(0);">[+]</a> <a onClick="resize_textarea('qq_set_data','sub');" href="javascript:void(0);">[-]</a>
	</td>
</tr>


<tr>
	<td>&nbsp;</td>
	<td><input type="submit"  value=" 更 新 " class="buton"></td>
</tr>
</tbody></table>
</form>  

	</div>

</div>



<!-- 顶部开始 footer.html -->
<phpscup:icon   htmlname='footer1'  iconname='footer' />
<!-- 顶部结束 footer.html -->


</body>
</html>
